const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(express.static('public'));
app.use(bodyParser.urlencoded({
    extended: true
}));
app.post('/register', (req, res) => {
    console.log(req.body);
    res.send('提交成功！！');
})
app.listen(3000, err => {
    if (!err) console.log('启动');
    else console.log(err);
})